package edu.gdkm.abstractdemo;

public class Test {
    public static void main(String[] args) {
        Circular_cylinder cc =new Circular_cylinder(2,10);
        Circular_cone cone = new Circular_cone(2,10);
        System.out.println("圆柱体的表面积为：" + cc.superficial_area());
        System.out.println("圆柱体的体积为：" + cc.volume());
        System.out.println();
        System.out.println("圆锥体的表面积为：" + cone.superficial_area());
        System.out.println("圆锥体的体积为：" + cone.volume());
    }
}
